package com.mspbots.api.client;


import org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerExchangeFilterFunction;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * com.mspbots.api.client.UserClient
 *
 * @author Jason
 * @date 2019/11/26
 **/
@Service
public class UserClient extends AbstractClient {

    public UserClient(WebClient.Builder builder,
                      LoadBalancerExchangeFilterFunction lbFunction) {
        super(builder.baseUrl("http://mspbots-user-manage")
                .filter(lbFunction)
                .build());
    }

}
